package org.pzy.java.json;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

/**
 * @author pzy
 */
public class JsonPutDemo {

    public static void main(String[] args) {
        String str = "{\"name\":\"a\",\"url\":\"b\"}\n";
        JSONObject jsonObject = JSON.parseObject(str);
        jsonObject.getString("url");
        jsonObject.put("url", "aaa");
        System.out.println(jsonObject);
    }
}
